//Object constructor不是推荐的方法
//更好的方法是采用object literal
var user = new Object();
user.name = 'Sunny';
user.interests = ['Traveling', 'Swimming'];
user.greeting = function() {
    console.log('Hi, I\'m ' + this.name + ".");
}

user.greeting();  //Hi, I'm Sunny.